<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Form Status Dalam Keluarga</title>

        <link href="<?php echo base_url('assets/css/tambah.css') ?>" type="text/css" rel="stylesheet" />

    </head>

    <body>
        <form action="<?php echo base_url('admin/hub_kel/tambah'); ?>" method="post">
            <table width="425" border="0" align="center">
                <tr>
                    <td colspan="5" class="trheader"><strong>Data Status Hubungan Dalam Keluarga</strong></td>
                </tr>
                <tr>
                    <td colspan="6" class="jeda">&nbsp;</td>
                </tr>
                <tr>
                    <td width="178">ID Hub. Keluarga</td>
                    <td colspan="5">&nbsp;&nbsp;<input type="text" name="id_hubkel" id="id_hubkel" class="textinputdua" placeholder=""/></td>
                </tr>
                <tr>
                    <td>Status Hubungan Keluarga</td>
                    <td colspan="5"><input type="text" name="hubkel" id="hubkel" class="textinput" placeholder=""/></td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td width="61">&nbsp;</td>
                  <td width="1">&nbsp;</td>
                    <td width="167">&nbsp;</td>
                </tr>
                <tr>
                    <td colspan="3"><div align="right">
                            <input type="submit" name="tambah" id="tambah" value="Tambah" class="radiobutton-kiri"/>
                        </div></td>
                    <td><input type="button" name="ubah" id="ubah" value="Ubah" class="radiobutton-kiri" /></td>
                </tr>
            </table>
      <table width="746" border="1" align="center">
                <?php
                //menampilkan data pengguna nama,alamat,no_telp,username,level
                if (isset($data)) {
                    foreach ($data->result() as $data_pengguna):
                        echo '<tr>';
                        echo '<td>' . $data_pengguna->nama . '</td>';
                        echo '<td>' . $data_pengguna->alamat . '</td>';
                        echo '<td>' . $data_pengguna->no_telp . '</td>';
                        echo '<td>' . $data_pengguna->username . '</td>';
                        echo '<td>' . $data_pengguna->level . '</td>';
                        echo '</tr>';
                    endforeach;
                }
                ?>               

            </table>
        </form>
    </body>
</html>